﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using model;
using Dal;
using System.Data;

namespace Bll
{
    public class EnterpriseBll
    {
        EnterpriseDal dal = new EnterpriseDal();
        public void ZhuCe(Enterprise enterprise)
        {
            dal.ZhuCe(enterprise);
        }
        public int Login(string eno, string epwd)
        {
            return dal.Login(eno, epwd);
        }
        public string Login(string eno)
        {
            return dal.Login(eno);
        }
        public Enterprise GetSingle(string eno)
        {
            return dal.GetSingle(eno);
        }
        public void Update(Enterprise enterprise)
        {
            dal.Update(enterprise);
        }
        public void PwdUpdate(Enterprise enterprise)
        {
            dal.PwdUpdate(enterprise);
        }
        public void Delete(string eno)
        {
            dal.Delete(eno);
        }
        public Enterprise GetInfo(string name)
        {
            return dal.GetInfo(name);
        }
        public DataTable getEnterprises(string keyword)
        {
            return dal.getEnterprises(keyword);
        }
        public int enable(string eno)
        {
            return dal.enable(eno);
        }
        public int getisok(string eno)
        {
            return dal.getisok(eno);
        }
    }
}
